package com.kuang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @description: TODO
 * @author: wuhaohua
 * @date: Created in 2022/4/5 22:08
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    // 姓名
    private String name;
    // 年龄
    private Integer age;

    @Override
    public String toString() {
        return "姓名：" + name + " ，年龄：" + age;
    }
}
